/* 主容器 */
.container {
  min-height: 100vh;
  background-color: #f5f5f5;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* 头部操作图标 */
.moreOptions,
.refreshIcon {
  font-size: 18px;
  color: #666;
  cursor: pointer;
  margin-left: 12px;
}
.content{
  padding: 35px 15px 15px 15px;
}
/* 患者信息 */
.patientInfo {
  display: flex;
  justify-content: space-between;
  padding: 34px 5px 5px 5px;
  margin-top: 45px;
  background-color: #fff;
  width: 90%;
  margin-left: 20px;
  border-radius: 12px;
  margin-bottom: 20px;
}

.patientDetails {
  display: flex;
  align-items: center;
  gap: 12px;
}

.patientName {
  font-size: 16px;
  font-weight: 600;
  color: #333;
  margin: 0;
}

.patientId {
  font-size: 14px;
  color: #666;
  margin: 0;
}

.switchPatient {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #007AFF;
  cursor: pointer;
}

.personIcon {
  font-size: 16px;
}

.switchText {
  font-size: 14px;
}

/* 标签页 */
.tabs {
  display: flex;
  background-color: #fff;
  padding: 8px 0 0 0;
  border-radius: 8px;
  margin: 15px 6px 16px 6px;
}

.tab {
  flex: 1;
  padding: 10px 16px;
  background-color: #fff;
  border: none;
  font-size: 14px;
  color: #666;
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.2s ease;
  font-weight: 500;
}

.activeTab {
  color: #fff;
  background-color: #007AFF;
  font-weight: 600;
}

/* 医生列表 */
.doctorList {
  padding: 0 16px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* 医生卡片 */
.doctorCard {
  background-color: #fff;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  margin-bottom: 12px;
}

.doctorInfo {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
}

.doctorAvatar {
  width: 60px;
  height: 60px;
  border-radius: 30px;
  background-color: #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 2px solid #e0e0e0;
}

.avatarIcon {
  font-size: 28px;
}

.doctorDetails {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.doctorName {
  font-size: 18px;
  font-weight: 700;
  color: #333;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.doctorName .doctorTitle {
  font-size: 14px;
  color: #999;
  font-weight: 400;
}

.doctorDepartment {
  font-size: 14px;
  color: #666;
  margin: 0;
  font-weight: 400;
  line-height: 1.4;
}

/* 排队信息 */










/* 响应式设计 */
@media (max-width: 480px) {
  .container {
    font-size: 14px;
  }

  .header {
    padding: 10px 12px;
  }

  .title {
    font-size: 16px;
  }

  /* .patientInfo {
    
  } */

  .doctorList {
    padding: 12px;
  }



  /* 小屏幕下的检查室信息样式 */
  .examRoomInfo {
    min-width: 140px;
    padding: 8px;
  }

  .roomName {
    font-size: 14px;
  }

  .hospitalName {
    font-size: 12px;
  }
}

/* 弹出框样式 */
.modalOverlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  z-index: 1000;
  animation: fadeIn 0.3s ease-out;
}

.modalContent {
  background-color: #fff;
  border-radius: 16px 16px 0 0;
  width: 100%;
  max-width: 400px;
  max-height: 50vh;
  animation: slideUp 0.3s ease-out;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
}

.modalHeader {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px 12px 20px;
  border-bottom: 1px solid #f0f0f0;
}

.modalTitle {
  font-size: 16px;
  font-weight: 600;
  color: #333;
  margin: 0;
}

.closeButton {
  background: none;
  border: none;
  font-size: 24px;
  color: #666;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  transition: background-color 0.2s ease;
}

.closeButton:hover {
  background-color: #f5f5f5;
}

.patientList {
  padding: 12px 20px 50px 20px;
}

.patientItem {
  padding: 12px 16px;
  margin-bottom: 6px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  background-color: #fff;
  border: 1px solid #e0e0e0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.patientItem:hover {
  background-color: #f5f5f5;
}

.patientItem.selectedPatient {
  background-color: #e3f2fd;
  border-color: #2196f3;
}

.patientItem .patientName {
  font-size: 16px;
  font-weight: 600;
  color: #333;
  margin: 0;
}

.patientItem .patientId {
  font-size: 14px;
  color: #666;
  margin: 0;
}

.patientItem.selectedPatient .patientName {
  color: #2196f3;
  font-weight: 700;
}

.patientItem.selectedPatient .patientId {
  color: #2196f3;
}

/* 动画效果 */
@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    transform: translateY(100%);
  }

  to {
    transform: translateY(0);
  }
}

/* 深色模式支持 */
@media (prefers-color-scheme: dark) {
  .container {
    background-color: #1a1a1a;
  }

  .header,
  .patientInfo,
  .tabs,
  .doctorCard {
    background-color: #2d2d2d;
    border-color: #404040;
  }

  .title,
  .patientName,
  .doctorName {
    color: #fff;
  }

  .patientId,
  .doctorTitle,
  .doctorDepartment,
  .doctorHospital,
  .tab {
    color: #ccc;
  }

  .activeTab {
    color: #007AFF;
  }

  .modalContent {
    background-color: #2d2d2d;
  }

  .modalTitle {
    color: #fff;
  }

  .closeButton {
    color: #ccc;
  }

  .closeButton:hover {
    background-color: #404040;
  }

  .patientItem {
    background-color: #404040;
  }

  .patientItem:hover {
    background-color: #1e3a5f;
    border-color: #1976d2;
  }

  .patientItem.selectedPatient {
    background-color: #1e3a5f;
    border-color: #2196f3;
  }

  .patientItem .patientName {
    color: #fff;
  }

  .patientItem .patientId {
    color: #ccc;
  }

  /* 深色模式下的排队信息样式 */
  .queueInfo {
    background-color: #2d2d2d;
    border-color: #555;
  }


  .currentNumberLabel {
    color: #ff6b6b;
  }

  .currentNumber {
    color: #ff6b6b;
  }

  .viewQueueBtn {
    color: #60a5fa;
  }

  .viewQueueBtn:hover {
    color: #93c5fd;
  }

  /* 深色模式下的检查室信息样式 */
  .examRoomInfo {
    background-color: #2d2d2d;
    border-color: #555;
  }

  .roomName {
    color: #fff;
  }

  .hospitalName {
    color: #ccc;
  }

  /* 深色模式下的取药信息样式 */
  .medicineInfo {
    background-color: #2d2d2d;
    border-color: #555;
  }

  .waitingInfo {
    background-color: #3d2f00;
  }

  .waitingLabel {
    color: #ffb74d;
  }

  .waitingNumber {
    color: #ffb74d;
  }

  .windowInfo {
    background-color: #2d2d2d;
  }

  .windowName {
    color: #fff;
  }

  .windowInfo .hospitalName {
    color: #ccc;
  }
}

/* 排队信息区域 */
.queueInfo {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #fff;
  border-radius: 8px;
}

.currentNumberBox1 {
  /* flex: 1; */
  width: 50%;
  height: 40px;
  background-color: #fff3cd;
  padding: 14px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  text-align: center;
}

/* 当前接诊号显示框 */
.currentNumberBox {
  /* flex: 1; */
  width: 50%;
  background-color: #fff3cd;
  padding: 14px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  text-align: center;
}

.currentNumberLabel {
  font-size: 12px;
  color: #e7a03d;
  font-weight: 500;
  margin-bottom: 2px;
}

.currentNumber {
  font-size: 20px;
  font-weight: 600;
  color: #e7a03d;
  line-height: 1;
  padding-left: 25px;
}

/* 查看排队情况按钮 */
.viewQueueBtn {
  display: flex;
  align-items: center;
  gap: 4px;
  background: none;
  border: none;
  color: #007AFF;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  padding: 8px 0;
  transition: color 0.2s ease;
}

.viewQueueBtn:hover {
  color: #0056b3;
}

.viewQueueBtn span:last-child {
  font-size: 16px;
  font-weight: bold;
}

/* 检查室信息样式 */
.examRoomInfo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 10px;
  border-radius: 6px;
  min-width: 160px;
}

.roomName {
  font-size: 16px;
  font-weight: 700;
  color: #333;
  margin-bottom: 4px;
  line-height: 1.2;
}

.hospitalName {
  font-size: 14px;
  color: #666;
  font-weight: 400;
  line-height: 1.3;
}

/* 取药信息样式 */
.medicineInfo {
  display: flex;
  align-items: stretch;
  gap: 0;
  background-color: #fff;
  border-radius: 8px;
  overflow: hidden;
}

.waitingInfo {
  flex: 1;
  background-color: #fff3cd;
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.waitingLabel {
  font-size: 12px;
  color: #e7a03d;
  font-weight: 500;
  margin-bottom: 4px;
}

.waitingNumber {
  font-size: 24px;
  font-weight: 700;
  color: #e7a03d;
  line-height: 1;
}

.windowInfo {
  flex: 1;
  background-color: #fff;
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.windowName {
  font-size: 16px;
  font-weight: 700;
  color: #333;
  margin-bottom: 4px;
  line-height: 1.2;
}

.windowInfo .hospitalName {
  font-size: 14px;
  color: #666;
  font-weight: 400;
  line-height: 1.3;
}